class Person:
    # 类的构造方法 用于初始化对象的属性
    def __init__(self,name,age,address):
        self.name = name
        self.age  = age
        self.address = address
    # 类的方法
    def greet(self):
        print(f"Hello everyone I am {self.name},I am {self.age} years old and from {self.address}")


## 创建对象
person1 = Person("zhangsan",18,"Beijing")
person2 = Person("lisi",20,"Shanghai")

## 调用对象的方法
person1.greet()
person2.greet()